package com.hssy.wululuaplan.service;

import com.hssy.wululuaplan.entity.KeepAccount;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hssy.wululuaplan.form.AccountForm;
import com.hssy.wululuaplan.vo.account.ChartVo;

import javax.servlet.http.HttpServletRequest;
import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 收支账本记录 服务类
 * </p>
 *
 * @author Mr.Hongtao
 * @since 2025-06-18
 */
public interface KeepAccountService extends IService<KeepAccount> {

    void addAccount(AccountForm form, HttpServletRequest request);

    Map<String, BigDecimal> getStatistic(String date, HttpServletRequest request);

    List<KeepAccount> getRecordList(String dateType, String date, HttpServletRequest request);

    List<ChartVo> getChartDataList(String dateType, String date, HttpServletRequest request);
}
